package coml.jiyun.hp.wanandroid.presenter;

import coml.jiyun.hp.wanandroid.base.BasePresenter;
import coml.jiyun.hp.wanandroid.bean.SystemBean;
import coml.jiyun.hp.wanandroid.model.SystemModel;
import coml.jiyun.hp.wanandroid.net.ResultCallBack;
import coml.jiyun.hp.wanandroid.view.SystemView;

public class SystemPresenter extends BasePresenter<SystemView> {

    private SystemModel systemModel;

    @Override
    protected void initModel() {
        systemModel = new SystemModel();
        addModel(systemModel);
    }
    public void getSystem(){
        systemModel.getSystem(new ResultCallBack<SystemBean>() {
            @Override
            public void onSuccess(SystemBean systemBean) {
                mView.setSystem(systemBean);
            }

            @Override
            public void onFail(String msg) {

            }
        });
    }
}
